package com.retailshop.shopuser.service;

import com.retailshop.shopuser.entity.User;
import com.retailshop.shopuser.entity.UserBankInfo;


import java.util.List;

public interface UserService {
//    //读取会员信息
//    List<User> selectAll();

    //读取会员信息
    User selectByPrimaryKey(int id);

    //插入数据
    int insertSelective(User record);

    //更新数据
    int updateByPrimaryKeySelective(User record);

    List<User> selectUserByPhone(User user);

    /**
     * 微信openID
     * @param
     * @return
     */
    User selectUserByOpenId(String openId);

    User selectUserByPhone(String phone);


    UserBankInfo selectUserBankByUserId(int userId);

    List<User> getUserList();
}
